<% layout('layout.ejs') -%>
<button class="btn btn-primary" onclick="window.location='/basedata/addMenu'">新增</button>
<button class="btn btn-primary">删除</button>
<button class="btn btn-primary">排序</button>
<div class="box" style="margin-top: 20px;">
    <div ng-app="gr-app"  ng-controller="menuListCtr">
    <div class="box-header">
        <h3 class="box-title">菜单列表</h3>
        <div class="box-tools">
            <div class="input-group" style="width: 150px;">
                <input class="form-control input-sm pull-right" type="text" placeholder="Search" name="table_search">
                <div class="input-group-btn">
                    <button class="btn btn-sm btn-default">
                        <i class="fa fa-search"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!--列表-->
    <div class="box-body table-responsive no-padding">
        <table class="table table-hover">
            <tbody>
            <tr>
                <th><input type="checkbox"></th>
                <th>ID</th>
                <th>名称</th>
                <th>上级菜单</th>
                <th>链接</th>
                <th>排序</th>
                <th>分组</th>
                <th>操作</th>
            </tr>
            <tr ng-repeat="menu in menuListM track by $index">
                <td><input type="checkbox"></td>
                <td>{{menu.id}}</td>
                <td>{{menu.title}}</td>
                <td>{{menu.pid}}</td>
                <td>{{menu.url}}</td>
                <td>{{menu.sort}}</td>
                <td>{{menu.group}}</td>
                <td><button class="btn">编辑</button><button class="btn"  ng-click="delete($index)">删除</button></td>
            </tr>
            <!--<tr ng-repeat="menu in menuListM track by $index">-->
                <!--<td><input type="checkbox"></td>-->
                <!--<td><span mg-bind="menu.id"></span></td>-->
                <!--<td><span mg-bind="menu.title"></span></td>-->
                <!--<td><span mg-bind="menu.pid"></span></td>-->
                <!--<td><span mg-bind="menu.url"></span></td>-->
                <!--<td><span mg-bind="menu.sort"></span></td>-->
                <!--<td><span mg-bind="menu.group"></span></td>-->
                <!--<td><button class="btn">编辑</button><button class="btn">删除</button></td>-->
            <!--</tr>-->
            </tbody>
        </table>
    </div>
    <!--分页-->
    <tm-pagination conf="paginationConf"></tm-pagination>
    <!--<div class="box-footer clearfix">-->
        <!--<ul id="pagination" class="pagination pagination-sm no-margin pull-right">-->
        <!--</ul>-->
    <!--</div>-->
    </div>
</div>
<% block('footer').append('<script src="/script/basedata_2.js"></script>')%>